/**
 * 路由视图地址配置
 */

/**
 * 引入module文件
 */
import home_router from './../modules/home/config/router';
import bmgl_router from './../modules/bmgl/config/router';
import jcsz_router from './../modules/jcsz/config/router';
import login from './../common/components/Login';

const routers = [];

if(home_router != null) {
	routers.push(home_router);
}
if(bmgl_router != null) {
	routers.push(bmgl_router);
}
if(jcsz_router != null) {
	routers.push(jcsz_router);
}

export default [{
		path: "/",
		redirect: "/home"
	}, {
		path: "",
		redirect: "/home"
	},
	{
		path: "/login",
		component: login
	},
	...routers
];